import Vue from 'vue'
import Router from 'vue-router'

// 几个页面的路由
// 关于我们
// import About from "./pages/about"
const About = () => import("./pages/about/about");
// 产品
// import Product from "./pages/product"
const Product = () => import("./pages/product/product");
// 首页
// import Home from "./pages/home"
const Home = () => import("./pages/home/home");
// 招商加盟
// import Join from "./pages/join"
const Join = () => import("./pages/join/join");
// 新闻
// import News from "./pages/news
const News = () => import("./pages/news/news");

// 新闻内页
const Newsinfo = () => import("./pages/news/newsinfo");

// 联系我们
// import Contact from "./pages/contact"
const Contact = () => import("./pages/contact/contact");

//加盟的加盟优势
const Yoshi = () => import("./components/join/youshi")
//加盟的加盟支持
const Zhichi = () => import("./components/join/zhichi")
//加盟的加盟模式
const Moshi = () => import("./components/join/moshi")
//加盟的加盟政策
const Zhengce = () => import("./components/join/liucheng")

Vue.use(Router);

export default new Router({
    // mode: 'history',
    base: process.env.BASE_URL,
    routes: [
        {path: "/", redirect: "/home"},
        {path: "/home", name: 'home', component: Home},
        {path: "/about", name: 'about', component: About},
        {path: "/product", name: 'product', component: Product},
        {path: "/join", name: "join", component: Join,},
        {path: "/news", name: "news", component: News},
        {path: "/contact", name: "contact", component: Contact},
        {path: "/news/newsinfo", name: "newsinfo", component: Newsinfo},
    ],
    linkActiveClass: "click-current", // 覆盖默认的路由高亮的类
})
